﻿using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace lifeofbob
{
    public class Camera2D
    {
        public Matrix transform;
        Viewport view;
        Vector2 centre;


        public Camera2D(Viewport newView)
        {
            view = newView;
        }

        public void Update(GameTime gameTime, Player player)
        {
            centre = new Vector2(player.player_center.X - 512, player.player_center.Y - 368);
            transform = Matrix.CreateScale(new Vector3(1, 1,0)) * Matrix.CreateTranslation(new Vector3(-centre.X,-centre.Y, 0));
        }
    }
}

